﻿<admintpl file="header" />
<!-- 公用样式 -->

<link href="__PUBLIC__/bootstrap-fileinput/css/fileinput.css" media="all" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/bootstrap-fileinput/js/fileinput.js" type="text/javascript"></script>
<script src="__PUBLIC__/bootstrap-fileinput/js/fileinput_locale_zh.js" type="text/javascript"></script>
<script src="__PUBLIC__/bootstrap-fileinput/js/fileinput_locale_es.js" type="text/javascript"></script>

</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="#">参数设定</a></li>
        </ul>

        <div class="wrap jj">
            <div class="common-form">
                <div id="kv-avatar-errors" class="center-block" style="width:800px;display:none"></div>
                <form  class="form-horizontal" action="{:U('tui/agent/params_post')}" method="get"> 
                    <fieldset>
                        <div class="control-group">
                            <label class="control-label">显示最近几天的数据？<br />(默认90天)</label>
                            <div class="controls">
                                <input type="text" class="input" name="time_limit" placeholder="请输入" value="90" />
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label">提现阈值<br />(默认3元)</label>
                            <div class="controls">
                                <input type="text" class="input" name="agent_widthdraw_base" placeholder="请输入" value="{$base}" />
                            </div>
                        </div>

<!--                        <div class="control-group">
                            <label class="control-label">CP分成比例</label>
                            <div class="controls">
                                <input type="text"  class="input" name="game_rate" value="">
                                * 比例50% 填写0.5
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label">渠道默认分成比例:</label>
                            <div class="controls">
                                <input type="text" class="input" name="agent_rate" value="">
                                * 比例50% 填写0.5
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label">游戏版本:</label>
                            <div class="controls">
                                <input type="text" class="input" name="version" value="">
                                * 数字与小数点组合
                            </div>
                        </div>

                        <div class="control-group">
                            <label class="control-label">当前状态</label>
                            <div class="controls">
                                <foreach name="gamestatues" key="k" item="v">
                                    <php>$gs_select=$k==1 ?"checked":"";</php>
                                    <label class="radio inline" for="active_true">
                                        <input type="radio" name="gstatus" value="{$k}" {$gs_select}  id="gstatus">{$v}</input>
                                    </label>
                                </foreach>
                            </div>
                        </div>-->
                    </fieldset>
                    <div class="form-actions">
                        <button type="submit" class="btn btn-primary btn_submit js-ajax-submit">修改</button>
                        <!--<a class="btn" href="{:U('Sdk/Game/index')}">返回</a>-->
                    </div>
                </form>
            </div>
        </div>
        <script src="__PUBLIC__/js/common.js"></script>
<!--
        <script>
            $(function () {
                $("#version").bind("blur", function () {
                    var version = $("#version").val();
                    var reg = /([0-9]{1}.){1,}[0-9]{1}$/;

                    if (version != null) {
                        if (!reg.test(version)) {
                            $("#cmsg").html("格式不正确,数字小数点组合");
                        } else {
                            $("#cmsg").html("");
                        }
                    }

                });
            });

            var btnCust = '';
            $("#avatar").fileinput({
                overwriteInitial: true,
                maxFileSize: 1500,
                showClose: false,
                showCaption: false,
                browseLabel: '',
                removeLabel: '',
                browseIcon: '<i class="fa fa-folder-open-o"></i>添加',
                removeIcon: '<i class="fa fa-trash-o"></i>清除',
                removeTitle: 'Cancel or reset changes',
                elErrorContainer: '#kv-avatar-errors',
                msgErrorClass: 'alert alert-block alert-danger',
                defaultPreviewContent: '<img src="__PUBLIC__/bootstrap-fileinput/img/add_img.png" alt="Your Avatar" style="width:160px">',
                layoutTemplates: {main2: '{preview} ' + btnCust + ' {remove} {browse}'},
                allowedFileExtensions: ["jpg", "png"]
            });

            $("#input-pt-br").fileinput({
                language: "zh",
                uploadUrl: "",
                maxFileCount: 5,
                showUpload: false,
                showCancel: false,
                showCaption: false,
                overwriteInitial: false,
                dropZoneEnabled: false,
                allowedFileExtensions: ["jpg", "jpeg", "png", "gif"]
            });
        </script>-->

</body>

</html>